package day240509.p2;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

import java.io.IOException;

public class Hupu extends JieXi{
    @Override
    public Elements getInfo(int page) throws IOException {
        Document doc= Jsoup.connect("https://bbs.hupu.com/775-postdate-" + page).get();
        Elements es = doc.select(".post-title a");
        return es;
    }

    @Override
    public String setLink() {
        return "https://bbs.hupu.com";

    }
}
